package com.ruoyi.property.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.property.mapper.FeeImportMapper;
import com.ruoyi.property.domain.FeeImport;
import com.ruoyi.property.service.IFeeImportService;
import com.ruoyi.common.core.text.Convert;

/**
 * 费用导入Service业务层处理
 * 
 * @author sux
 * @date 2021-06-30
 */
@Service
public class FeeImportServiceImpl implements IFeeImportService 
{
    @Autowired
    private FeeImportMapper feeImportMapper;

    /**
     * 查询费用导入
     * 
     * @param importFeeId 费用导入ID
     * @return 费用导入
     */
    @Override
    public FeeImport selectFeeImportById(Long importFeeId)
    {
        return feeImportMapper.selectFeeImportById(importFeeId);
    }

    /**
     * 查询费用导入列表
     * 
     * @param feeImport 费用导入
     * @return 费用导入
     */
    @Override
    public List<FeeImport> selectFeeImportList(FeeImport feeImport)
    {
        return feeImportMapper.selectFeeImportList(feeImport);
    }

    /**
     * 新增费用导入
     * 
     * @param feeImport 费用导入
     * @return 结果
     */
    @Override
    public int insertFeeImport(FeeImport feeImport)
    {
        feeImport.setCreateTime(DateUtils.getNowDate());
        return feeImportMapper.insertFeeImport(feeImport);
    }

    /**
     * 修改费用导入
     * 
     * @param feeImport 费用导入
     * @return 结果
     */
    @Override
    public int updateFeeImport(FeeImport feeImport)
    {
        return feeImportMapper.updateFeeImport(feeImport);
    }

    /**
     * 删除费用导入对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFeeImportByIds(String ids)
    {
        return feeImportMapper.deleteFeeImportByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除费用导入信息
     * 
     * @param importFeeId 费用导入ID
     * @return 结果
     */
    @Override
    public int deleteFeeImportById(Long importFeeId)
    {
        return feeImportMapper.deleteFeeImportById(importFeeId);
    }
}
